package com.cocolove2.library_cocodialog.animations.slideEnter;

import android.animation.ObjectAnimator;
import android.util.DisplayMetrics;
import android.view.View;

import com.cocolove2.library_cocodialog.animations.BaseAnimatorEffects;


public class SlideTopEnter extends BaseAnimatorEffects {
    @Override
    protected void setupAnimator(View view) {
        DisplayMetrics dm = view.getContext().getResources().getDisplayMetrics();
        mAnimatorSet.playTogether(//
                ObjectAnimator.ofFloat(view, "translationY", -250 * dm.density, 0), //
                ObjectAnimator.ofFloat(view, "alpha", 0.2f, 1));
    }


}
